<?php
namespace app\common\validate;

use think\Validate;

class CourseValidate extends Validate
{
    protected $rule =   [
        'course_id|页数'          => 'require|integer',
        'page|页数'               => 'require|integer',
        'limit|条数'              => 'require|integer',
    ];
    
    protected $scene = [
        'list' => ['page', 'limit'],
        'show' => ['course_id'],
    ];
}